<template>
  <div class="layout-page">
    <!-- 二级路由出口 -->
    <router-view></router-view>
    <!-- 底部栏 -->
  <van-tabbar route v-model="active"  active-color="#e40137">
  <van-tabbar-item to="/company" icon="hotel-o">公司</van-tabbar-item>
  <van-tabbar-item to="/shuati" icon="edit">刷题</van-tabbar-item>
  <van-tabbar-item to="/" icon="search">发现</van-tabbar-item>
  <van-tabbar-item to="/myinfo" icon="user-o">我的</van-tabbar-item>
</van-tabbar>
  </div>
</template>

<script>
export default {
  name:'layout',
  data(){
    return{
       active: 2,
    }
  }
}
</script>

<style scoped>

</style>